package noema.dataModel;

import java.util.ArrayList;
import java.util.List;

public class Therapy {
	private List<String> medicines;

	public Therapy() {
		super();
		medicines=new ArrayList<String>();
	}
	
	public Therapy(List<String> medicines) {
		this();
		this.medicines=medicines;
	}

	public List<String> getMedicines() {
		return medicines;
	}

	public void setMedicines(List<String> medicines) {
		this.medicines = medicines;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((medicines == null) ? 0 : medicines.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Therapy other = (Therapy) obj;
		if (medicines == null) {
			if (other.medicines != null)
				return false;
		} else if (!medicines.equals(other.medicines))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Therapy [medicines=" + medicines + "]";
	}
	
	
}
